package com.ljx.seckill.controller;

import com.ljx.seckill.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2025-01-09  22:32
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {

    @Autowired
    private GoodsService goodsService;

@GetMapping("/seckill/{goodId}/{userId}")
    public void seckill(@PathVariable("goodId") Long goodId,
                        @PathVariable("userId") Long userId){
        goodsService.seckill(goodId, userId);
    }


}
